function onFormatPicture(idStr, param) {
    switch (idStr) {
        case "formatData": {
            
            const data = []
            let cells =window.Application.ActiveSheet.Range(window.Application.Selection.Address())
            if(cells.Count == 1){
                if(!cells.Item(1).Value2){
                    alert('请至少选择一条数据')
                    return
                }else{
                    data.push(cells.Item(1).Value2)
                }
            }else{
                for(let i=1; i<=cells.Count; i++){
                    data.push(cells.Item(i).Value2)
                }
            }

            return data
        }
        case "openWeb": {
            break
        }
    }

}

export default {
    onFormatPicture
}